{% extends "CommonLibraryBundle::base.html.twig" %}

{% form_theme form ':form:form_bootstrap.html.twig' %}

{% block stylesheets %}
    {{ parent() }}
    <link type="text/css" rel="stylesheet" href="{{ asset("css/difficulte.css") }}"/>
{% endblock %}

{% block javascripts %}
    {{parent()}}
{% endblock %}

{% block titre %}
    Difficulté
{% endblock %}

{% block titresmall %}
    {% if app.request.attributes.get('_route') == 'common_library_difficulte_edit' %}
        Ajout d'une difficulté
    {% else %}
        Modification d'une difficulté
    {% endif %}
{% endblock %}


{% block subbody %}
        <form id="formDifficulte" action="" method="post" class=""{{ form_enctype(form) }}>
            <div class="well">
                {{ form_row(form.intitule, {'label': 'Intitulé'}) }}
            </div>
            {{ form_rest(form) }}
            <br>
            <div class="text-center">
                <button class="btn btn-success" type="submit">Valider</button>
                <a href="{{ path('common_library_difficulte_index') }}" class="btn btn-danger text-center">Retour</a>
            </div>
        </form>
{% endblock %}